#include <buola/chart/plots/cxyplot.h>

namespace buola { namespace chart {

CXYPlot::CXYPlot()
    :   mHighlighted(false)
{
}

CXYPlot::~CXYPlot()
{
}

double CXYPlot::GetMinPosX()
{
    double lMin=GetMinX();
    
    if(lMin>0) return lMin;
    return 1.0;
}

double CXYPlot::GetMinPosY()
{
    double lMin=GetMinY();
    
    if(lMin>0) return lMin;
    return 1.0;
}

void CXYPlot::DrawHover(CXYChartContext &pC,const CPoint_d &pPos)
{
}

double CXYPlot::GetDist(const CPoint_d &pPos,CXAxis*,CYAxis*)
{
    return INFINITY;
}

CPoint_d CXYPlot::GetNearestPoint(const CPoint_d &pPos,CXAxis*,CYAxis*)
{
    return pPos;
}

void CXYPlot::Highlight(bool pHL)
{
    mHighlighted=pHL;
}


/*namespace chart*/ } /*namespace buola*/ }
